package com.soda.utils;

import org.junit.Test;

/**
 * Created by life on 2018/3/23.
 */
public class ServerRegisterTest_2 {

    @Test
    public void instantiateTest() throws Exception {
        ServerRegister sr = new ServerRegister();
        sr.instantiate(true);
        System.err.println(String.format("初始化完成！"));
    }

    public static void main(String[] args) throws Exception {
        ServerRegister sr = new ServerRegister();
        sr.setAppName("myTest");
        sr.setEtcdUrls("http://172.24.7.17:8183");
        sr.afterPropertiesSet();
        System.err.println(String.format("初始化完成-2！index:%1s", sr.getIndex()));
    }
}